package com.pfizer.Entity;

/**
 * pMessage--<b>訊息信息實體</b>--靜態變量為創建數據庫表需要的字段名
 * 
 * @author krui
 * @version 1.40 2011/11/19
 */

public class pMessage{
	
	public static final String 	MSGSTRING="Msg";
	public static final String 	MSGIDSTRING="Msg_ID";
	public static final String	MSGRECEIVERIDSTRING="UserID";
	public static final String 	MSGCONTSTRING="Msg_Cont";
	public static final String	MSGFLAGSTRING="Msg_Flag";
	private long			Auto_ID=0;
	private long 			MSG_ID=0;
	private String 	MSG_Cont="";
	private String		UserID="";
	private	int		MSG_Flag=0;
	public pMessage(int _ID,String _Cont)
	{
		this.MSG_ID=_ID;
		this.MSG_Cont=_Cont;
	}
	public pMessage()
	{
		
	}
	public pMessage(String _ID)
	{
		this.MSG_ID=new Integer(_ID).intValue();
	}
	public void setAutoID(long _ID)
	{
		this.Auto_ID=_ID;
	}
	public long getAutoID()
	{
		return this.Auto_ID;
	}
	public void setMsgID(long _ID)
	{
		this.MSG_ID=_ID;
	}
	public void setMsgID(String _ID)
	{
		this.MSG_ID=new Long(_ID).intValue();
	}
	public long getMsgID()
	{
		return this.MSG_ID;
	}
	public void setFlag(int _Flag)
	{
		this.MSG_Flag=_Flag;
	}
	public long getFlag()
	{
		return this.MSG_Flag;
	}
	public void setUserID(String _UserID)
	{
		this.UserID=_UserID;
	}
	public String getUserID()
	{
		return this.UserID;
	}
	public void setCont(String _Cont)
	{
		this.MSG_Cont=_Cont;
	}
	public String getCont()
	{
		return this.MSG_Cont;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return String.valueOf(this.MSG_ID)+",name  "+this.MSG_Cont+"\n";
	}
}
